import request from '@/utils/request'

// 获取体测记录列表
export function getFitnessRecordList(params) {
  return request({
    url: '/fitness-record/list',
    method: 'get',
    params
  })
}

// 添加体测记录
export function addFitnessRecord(data) {
  return request({
    url: '/fitness-record/add',
    method: 'post',
    data
  })
}

// 更新体测记录
export function updateFitnessRecord(data) {
  return request({
    url: '/fitness-record/update',
    method: 'put',
    data
  })
}

// 删除体测记录
export function deleteFitnessRecord(recordId) {
  return request({
    url: `/fitness-record/delete/${recordId}`,
    method: 'delete'
  })
}